package com.zc.component.network.http.client;

import com.zc.component.network.core.Network;
import com.zc.core.message.codec.http.HttpRequestMessage;
import com.zc.core.message.codec.http.HttpResponseMessage;
import reactor.core.publisher.Flux;


/**
 * Http 客户端网络组件接口
 *
 **/
public interface HttpClient extends Network {

    /**
     * 发起请求
     *
     * @param message 请求消息
     * @return 响应流
     */
    Flux<? extends HttpResponseMessage> request(HttpRequestMessage message);
}
